View and Export
See a list of commands that helps to see the data, modify the data, export data etc.
List objects in the working environment
ls()
List the variables in data(sudheesh)
names(sudheesh)
To see the first and last part of the data
head(sudheesh)
tail(sudheesh)
To export data in to notepad
write.table(sudheesh," C:/Documents and Settings/Administrator/Desktop/sudh.txt", sep="\t")
To export to excel, SPSS, SAS and STAT we have to specify the library first
To export to an excel spreadsheet
library(xlsReadWrite)
write.xls(sudheesh, " C:/Documents and Settings/Administrator/Desktop/sudh.xls")
back to notes
|